wayland: avoid dropping surfaces when possible
authorChristian Hergert <christian@hergert.me>
Thu, 17 Mar 2016 06:35:20 +0000 (23:35 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 22 Mar 2016 02:03:20 +0000 (22:03 -0400)
commitc48bc48dda852519e1951b03eb222a89a62efd29
tree8cfe81e42c49d039ccd37b528f2d522dfb146580
parent7c2f81bcd9b0d0c105351a5d7c643e0eaf430e7c
wayland: avoid dropping surfaces when possible

If the configure-event gives us the same size as we had before,
which is common for animation resizes, then try to keep the
existing buffer around. This saves us a memfd_create() syscall
on every frame.

https://bugzilla.gnome.org/show_bug.cgi?id=763350
gdk/wayland/gdkwindow-wayland.c